package Work4;

public class jingli extends Work{
    double may;

    public jingli(String name, int day, double money) {
        super(name, day, money);
        this.may=1000+money*day*1.2;
    }

    @Override
    public void print() {
        System.out.println("name:"+name+1000+" +"+money+"*"+day+"*1.2"+"="+may);
    }
}
